package com.intco.ait.quotation.api.infrastructure.mybatis.entity;

import com.alibaba.fastjson2.JSON;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("package_method")
public class PackageMethodDo {

    private Long id;

    private String name;

    private String pic;

    private List<Long> bomDetailIds;

    private String status;

    private Date insertTime;

    private Date updateTime;

    public void setBomDetailIds(String bomDetailIds) {
        this.bomDetailIds = JSON.parseArray(bomDetailIds, Long.class);
    }

    public String getBomDetailIds() {
        return JSON.toJSONString(this.bomDetailIds);
    }
}
